import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import HospitalTop from './hospital_top/index.vue'
import HospitalBottom from './hospital_bottom/index.vue'
import LoginDialog from './login/index.vue'

export default {
  install(app: any) {
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
    // 注入全局组件
    app.component('HospitalTop', HospitalTop)
    app.component('HospitalBottom', HospitalBottom)
    app.component('LoginDialog', LoginDialog)
  }
}
